cmake_minimum_required(VERSION 3.0)

project(turn_server)

add_definitions(-std=c++11 -g -lpthread)

include_directories(./)
include_directories(./../)
include_directories(./../stun_client/)
include_directories(./../../loop_event/)

set(turn_server ./main.cpp)
aux_source_directory(./../ turn_server)
aux_source_directory(./../turn_server turn_server)
aux_source_directory(./../turn_server/data turn_server)
aux_source_directory(./../turn_server/listen turn_server)


SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")


set(loop_event_list ./)
aux_source_directory(./../../loop_event loop_event_list)

add_executable(turn_server_main ${turn_server} ${loop_event_list} ./../../../util/byte_process.cpp ./../../../util/amf.cpp)

add_executable(crc_compute crc_compute.cpp)

set(open_libs -lz ssl crypto)

target_link_libraries(turn_server_main ${open_libs})
target_link_libraries(crc_compute ${open_libs})






